<template>
  <div>
    研发项目 <el-input v-model="topic" placeholder="请输入内容"></el-input>
    主办人 <el-input v-model="host" placeholder="请输入内容"></el-input>
    开始日期 <el-input v-model="startDate" placeholder="请输入内容"></el-input>
    结束日期 <el-input v-model="endDate" placeholder="请输入内容"></el-input>


    详细<el-input type="textarea" :rows="2" placeholder="" v-model="details">
    </el-input>
    <el-button type="primary" @click="addplan()">提交</el-button>
  </div>
</template>
<script>
import { addplan } from "../../../api/research"
export default {
  mounted(){

  },
  data() {
    return {

      topic:null,
    host:null,
    startDate:null,
    endDate:null,
    details:null,
    }
  },
  methods:{
    addplan(){
      const add={
        topic:this.topic,
        host:this.host,
        startDate:this.startDate,
        endDate:this.endDate,
        details:this.details
      }
      addplan(add).then(res=>{
        console.log(res)
        if(res.code==200){
          this.$message.success(res.message)
        }else{
          this.$message.error(res.message)
        }
      })
    }
  }
}

</script>

<style scoped></style>
